//
//  LSZIdentityChooseManager.m
//  JKFuYinProject
//
//  Created by 九酷 on 2018/8/29.
//  Copyright © 2018年 LC. All rights reserved.
//

#import "LSZIdentityChooseManager.h"

@implementation LSZIdentityChooseManager
-(id)initWithIdentityChoose :(NSDictionary *)dic
{
    self = [super init];
    if (self) {
        self.arrayData = [[NSMutableArray alloc]init];
        self.mutNameArray = [[NSMutableArray alloc]init];
        if ([[dic valueForKey:@"data"] isKindOfClass:[NSString class]]) {
            return self;
        }
        if ([[dic valueForKey:@"data"] isKindOfClass:[NSNumber class]]) {
            return self;
        }
        if (![dic valueForKey:@"data"]) {
            return self;
        }
        NSArray * arrayData = dic[@"data"];
        NSMutableArray * AddArrayMg = [[NSMutableArray alloc]init];
        NSMutableArray * AddArrayName = [[NSMutableArray alloc]init];

        for (NSDictionary * diction in arrayData) {
            LSZIdentityChooseMg * mg = [[LSZIdentityChooseMg alloc]init];
            mg.id_id = NullStringjudgment(NSStr(diction[@"id"]));;
            mg.identity = NullStringjudgment(NSStr(diction[@"identity"]));;
            [AddArrayMg addObject:mg];
            [AddArrayName addObject:mg.identity];
        }
        self.arrayData = AddArrayMg;
        self.mutNameArray = AddArrayName;
    }
    return self;
}
@end
@implementation LSZIdentityChooseMg
@end
